public class q37 {
    public static void main(String[] args) {
        int a=1;
        int b=0;
        while (a<=1000){
            if ((a/10%10==3)&&(a%7==0)&&(a%11==0)){
                b+=a;

            }a++;

        }System.out.println("这些数的和为"+b);
    }
}
